<?php
	$datasql = $db->fetch_array("SELECT * FROM ads_slide WHERE status = 1 ");

	$xtpl = new XTemplate( "themes/".$global_config['themes']."/modules/main/slide.tpl");
	
	foreach($datasql as $dt ){
		$dt['img_max'] = $nv_Request->chuyenLinkURL($dt['img_max'],$global_config['img']);
		$dt['img_min'] = $nv_Request->chuyenLinkURL($dt['img_min'],$global_config['img']);
		$xtpl->assign('data',$dt);
		$xtpl->parse('main.li');
		$xtpl->parse('main.banner');	
	}
	$xtpl->parse( 'main' );
	$data .= $xtpl->text('main');	
?>

